package com.claudiushauptmann.gwt.recaptcha.sample.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

@RemoteServiceRelativePath("RecaptchaRemoteService")
public interface RecaptchaRemoteService extends RemoteService {
	
	public boolean verifyChallenge(String challenge, String response);

	public static class Util {

		public static RecaptchaRemoteServiceAsync getInstance() {

			return GWT.create(RecaptchaRemoteService.class);
		}
	}

}
